package com.xbjtech.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.UserMapper;
import com.xbjtech.model.User;
import com.xbjtech.service.UserService;
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	UserMapper usermapper;
	@Override
	public List<User> list() {
		return usermapper.userList();
	}

	@Override
	public void insertUser(User user) {
		usermapper.insertUser(user);
	}

	@Override
	public void deleteUserById(Integer id) {
		usermapper.deleteUserById(id);
	}

	@Override
	public void updateUser(User user) {
		usermapper.updateUser(user);
	}

	@Override
	public User selectUserById(Integer id) {
		return usermapper.selectUserById(id);
	}

}
